﻿namespace SupervisingController
{
    using System.Windows;

    /// <summary>
    /// not much here, but check the xaml for bindings
    /// </summary>
    public partial class RegistrationView : Window
    {
        private readonly RegistrationController _controller;

        public RegistrationView()
        {
            InitializeComponent();

            _controller = new RegistrationController(new RegistrationService(), new RegistrationRequest());
            DataContext = _controller;
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            _controller.Register();
        }
    }
}